﻿<?php
echo '<?xml version="1.0" encoding="UTF-8" ?>';
echo $this->doctype();
?>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link rel="stylesheet" type="text/css" href="/public/css/product/productdetail.css" />
		<script src="/public/js/menu/menu.js" type="text/javascript"></script>
		<script src="/public/js/zoom/magiczoom.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="/public/css/zoom/magiczoom.css" media="screen" />
		<?php 
		$this->headLink()->appendStylesheet('/public/css/standard/column.css');
		$this->headLink()->appendStylesheet('/public/css/menuVer/style.css');
		?>
		
	</head>
	<body>
		<div id="mainPage">
			<?php echo $this->action('menu','index','default');?>
			
			
			<div id="leftCol">
				<?php echo $this->action('yahoo','index','default'); ?>
				<?php echo $this->action('search','Searchsp','default');?>
			</div>
	
			<div id="rightCol">
				<div id="searchMenu">
				</div>
			</div>
			<div id ="centerCol">
				<div class="reviewpage">
					<div class="title_detail">
						THÔNG TIN SẢN PHẨM
					</div>
					<div class="picture_detail">
					    <a href="/public/images/product/<?php echo $this->pimg; ?>" width="500" height="500" " class="MagicZoom" rel="zoom-fade:true; smoothing-speed:17" title="Fade in/out effect with slow motion"><img src="/public/images/product/<?php echo $this->pimg; ?>" width="180" height="180" /></a>
						
					</div>
					<div class="content_detail">
						<div class="detail_spname"> 
							<?php echo $this->spname; ?>
						</div>
						<div class="detail_pten">
							<?php echo $this->pten; ?>
						</div>	
						<div class="detail_pgia">
							Giá: <?php echo $this->pgia; ?> VND
						</div>
						<div class="addcart">	
							<a href="http://shoppingcartcnpm.orgfree.com/index.php/LuyenUser/cart/cart?p_id=<?php echo $this->pid ?>&action=add&url=<?=$_SERVER['PHP_SELF']?>"><img  src = "/public/img/content/insert_to_cart.gif" /></a>
						</div>
					</div>
					<div class="detail">

						<h3>THÔNG SỐ SẢN PHẨM</h3>
						<br/>
						<table class="tb_detail" width="98%" >
							<tr>
								<th>Đặc điểm</th>
								<th>Chi tiết </th>
							</tr>
							<tr>
								<?php echo $this->partialLoop('product/_reviewproductItem.phtml', $this->viewdes) ?> 
							</tr>
						</table>
					</div>

					<div class="bycategory">
						<br/>
						<h3> CÁC SẢN PHẨM CÙNG CATEGORY</h3>
						<br/>
						<table class="detail_category" width="98%">
							<tr>
									<th >Sản phẩm</th>
									<th >Giá</th>
									<th >Hình ảnh</th>
									<th >Đặt mua</th>
							</tr>
							<tr>
								<?php echo $this->partialLoop('product/_reviewproductbyCatId.phtml', $this->productbyCategory) ?>
							</tr>
							
						</table>
                         <?php //cho $this->paginationControl($this->paginator, 'Sliding', 'product/my_pagination_control.phtml'); ?>
					</div>
					
					
					 </div>
				
			</div>
				<div id="footer">
					<br/>
					<br/>
					<hr/>
					<p>Copyright &copy; 2010 Zend Framework 1.8. All rights reserved.<br>Powered by Group 17,Software Engineering K51 </p>	
					<br>
				</div>	
			
		</div>
	</body>
</html>	

